<?php
/**
 * Created by PhpStorm.
 * User: longyuanmoqi
 * Date: 2016/11/1
 * Time: 8:34
 */
header('Content-type:text/html;charset=utf-8');
$e_id=$_GET['e_id'];
$link=mysqli_connect('localhost','root','');
if(!$link){
    die('连接数据库失败！'.mysqli_error($link));
}

mysqli_query($link,'set names utf8');
mysqli_query($link,'use`itcast`');

$sql='delete* from `emp_info` where e_id={$e_id}';
$result=mysqli_query($link,$sql);

header('Location:./showList.php');